<table cellpadding="0" cellspacing="0" width="100%">
    <%= cabecalho_tabela "Matr&iacute;cula","Nome","Curr&iacute;culo","Ingresso","Desligamento" %>

    <% pupils.each do |pupil| %>
      <tr>
        <td><%=h pupil.id %></td>
        <td><%=  link_to(pupil.person,"/aluno/#{pupil.id}") %></td>
        <td><%=h pupil.curriculodado %></td>
        <td><%=h pupil.periodoingresso %></td>
        <td><%=h pupil.periododesligamento %></td>

        <td>
          <%= link_to image_tag('editar.gif'), edit_pupil_path(pupil) %>
          <%= link_to image_tag('remover.gif'), pupil, :confirm => 'Are you sure?', :method => :delete %>
        </td>
      </tr>
    <% end %>
  </table>